package com.csdj.thread;

public class StartThread {

    public static void main(String[] args) {
        //创建线程对象
        MyThread thread1 = new MyThread();
        MyThread thread2 = new MyThread();

        //启动线程
        thread1.start();
        thread2.start();


        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
